package com.dyh.quickdemozwei.shiyanchang.pipeLine.example;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.function.Function;

@Service
public class ExcampleService {

    Integer ff0(String xxx){
        return xxx.length();
    }

    @Bean
    Function<String,Integer> ff(){
        return this::ff0;
    }
}
